<template>
  <div class="hot">
    <h5>{{ title }}</h5>
    <ul>
      <li v-for="(item, index) in list" :key="item">
        <van-tag type="danger">{{ index + 1 }}</van-tag> {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    list: Array,
    title: String
  }
}
</script>

<style scoped lang="scss">
.hot {
  width: 50vw;
  height: 60vh;
  border-radius: 10px;
  overflow: hidden;
  h5 {
    width: 100%;
    margin-bottom: 20px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: linear-gradient(rgb(160, 223, 93), #f8f8f8);
  }

  ul {
    box-sizing: border-box;
    padding: 10px;
    margin-left: 20px;
    li {
      margin-bottom: 5px;
    }
  }



}
</style>